package cn.thinkluck.pattern.bridge;

import lombok.extern.slf4j.Slf4j;

/**
 * 桥接器数据库驱动示例
 *
 * @Author liutao
 * @DateTime 2024/7/21 下午2:45
 */
@Slf4j
public class Main {
    //数据库驱动接口
    static Driver driver;
    //模拟配置文件(实现动态配置)
    public static final String DRIVER = "cn.thinkluck.pattern.bridge.MysqlDriver";

    public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException {
        driver = (Driver) Class.forName(DRIVER).newInstance();
        log.info(driver.connect());
    }
}
